{include file=header.html}
 <script type="text/javascript" language="javascript" src="{lib file=jquery-1.6.3.min.js}"></script>
<style type="text/css">
.btn-2{margin-bottom:5px;}
.table_no_border,.table_no_border td,.table_no_border th{
	padding:0;
	margin:0;
	border-bottom:none;
	border-top:none;
	}
.fabric_info_list td input,.fabric_info_list td select{width:93%;}
.fabric_info_table td{
	border-left:none;
	border-bottom:none;
	padding:2px;
	}
.fabric_info_table th
{
   border-top:none;
}
.no_left_border
{
	border-left:none;
}
.no_right_border
{
	border-right:none;
}
</style>
<body>
<div id="fabric_shop_data" style="display:none;"><select><!--{foreach from=$fabricshop_list item=fabric_shop}--><option value="{$fabric_shop.fabric_shop_id}">{$fabric_shop.fabric_shop_name|escape}</option><!--{/foreach}--></select></div>
<div class="sub-body">
      
  <div class="tab-frame" style="width:1000px;">
  <h3 class="tab-title-1"><span>{$lang.sample_more_info}</span></h3>
		<form method="post" id="sample_form" action="{url app=sample&act=$smarty.get.act&id=$smarty.get.id}">
    <table cellspacing="0" width="100%" cellpadding="0" class="tab-display">
    <tr>
      <th style="width:100px;" align="right">{$lang.status}：</th>
      <td class="tab-align-l">{$lang.sour_status.$sample.sourcing_status}</td>
      <th colspan="4">{$lang.front_pic}</th>
		<th colspan="4">{$lang.other_pic}</th>
      </tr>
      <tr>
        <th align="right">{$lang.arrival_date}：</th>
        <td class="tab-align-l">
        {$sample.arrival_date|date:Y-m-d}
          </td>
		<td colspan="4" rowspan="9"><img src="{$sample.front_pic}" id="front_pic_show" width="220" height="264" /><input type="hidden" name="front_pic" id="front_pic" value="" onChange="document.getElementById('front_pic_show').src=this.value;" />
        <input type="hidden" name="front_pic_small" id="front_pic_small" value="" /></td>
		<td colspan="4" rowspan="9"><img src="{$sample.other_pic}" id="other_pic_show" width="220" height="264" /><input type="hidden" name="other_pic" id="other_pic" value="" onChange="document.getElementById('other_pic_show').src=this.value;" /></td>
      </tr>
      <tr>
        <th align="right">{$lang.sample_sn}：</th>
        <td class="tab-align-l">

        {$sample.sample_sn}
          </td>
      </tr>
      <tr>
        <th align="right">{$lang.ref_sample_style}：</th>
        <td class="tab-align-l">
        <!--{foreach from=$lang.ref_sample_styles item=item key=k}-->
            {if $k eq $sample.ref_sample_style}{$item}{/if}
            <!--{/foreach}-->
          </td>
      </tr>
      <tr>
        <th align="right">{$lang.brand_name}：</th>
        <td class="tab-align-l">
        {$sample.brand_name}
          </td>
      </tr>

      <tr>
        <th align="right">{$lang.buyer_name}：</th>
        <td class="tab-align-l">
           {$sample.member_name}
          </td>
      </tr>
   
      <tr>
        <th align="right">{$lang.merchandiser}：</th>
        <td class="tab-align-l">        
            {$sample.user_name}
          </td>
      </tr>
      <tr>
        <th align="right">{$lang.style_name}：</th>
        <td class="tab-align-l">
        	<!--{foreach from=$style_list item=style1}-->
            {if $sample.style_id == $style1.style_id}{$style1.style_name|escape}{/if}
			<!--{/foreach}-->

         </td>
      </tr>
      <tr>
       <th align="right">{$lang.factory_name}：</th>
        <td class="tab-align-l">
        	<!-- {foreach from=$factory_list item=factorys} -->
        		{if $sample.factory_id == $factorys.factory_id}{$factorys.factory_name|escape}{/if}
        	<!-- {/foreach} -->
        </td>
      </tr>
      <tr>
        <th align="right">{$lang.order_sn}：</th>
        <td class="tab-align-l">
{$sample.order_sn|escape}
        </td>
       
      </tr>
      <tr>
        <th colspan="1" align="right" style="font-size:12px;">{$lang.fabric_info}：<br></th>
       <td colspan="12" style="margin:0; padding:0;">
       <table width="100%" class="fabric_info_table" cellpadding="0" cellspacing="0">
       <th width="15%" class="no_left_border">面料描述</th>
       <th width="15%">{$lang.fabric_shop_name}</th>
       <th width="10%">品名/货号</th>
       <th width="6%">颜色</th>
       <th width="6%">数量</th>
       <th width="7%" >价格</th>
       <th width="18%" >地址</th>
       <th width="13%">电话</th>
       <th width="5%">凭证</th>
       <th width="5%">色卡</th>
      <!--{foreach from=$fabric_info_list item=fabric_info name=fi}-->
       <tr class="fabric_info_list">
       <td class="tab-align-l">
       <input name="fabric_info_id[]" type="hidden" value="{$fabric_info.fabric_info_id}" />
       <input name="description[]" item="description" type="hidden"  value="{$fabric_info.description|escape}" />{$fabric_info.description|escape}</td>
       <td class="tab-align-l">
       <input name="fabric_shop_name[]" item="fabric_shop_name" type="hidden"  value="{$fabric_info.fabric_shop_id}" />
{$fabric_info.fabric_shop_name}</td>    
       <td class="tab-align-l">
       <input name="item[]" item="item" type="hidden"  value="{$fabric_info.item}" />
{$fabric_info.item}
</td>
       <td class="tab-align-l">
       <input name="colors[]" item="colors" type="hidden"  value="{$fabric_info.colors}" />
 {$fabric_info.colors}</td>
 		<td class="tab-align-l">
       <input name="fabric_num[]" item="fabric_num" type="hidden"  value="{$fabric_info.fabric_num}" />
 {$fabric_info.fabric_num}</td> 
 		<td class="tab-align-l">
       <input name="price[]" item="price" type="hidden"  value="{$fabric_info.price}" />
 {$fabric_info.price}</td>    
       <td class="tab-align-l">
        <input name="address[]" item="address" type="hidden"  value="{$fabric_info.address}" />
{$fabric_info.address}</td>
       <td class="tab-align-l"><input name="phone_mob[]" item="phone_mob" type="hidden"  value="{$fabric_info.phone_mob}" />
{$fabric_info.phone_mob}</td>
		<td class="tab-align-l">
      <a href="{url app=purchase&act=upload_invoices&s_id=$sample.sourcing_id&fid=$fabric_info.fabric_info_id}">查看</a>
       <td class="tab-align-l">
      <a  item="picture_show" cid="{$fabric_info.cc_id}"  href="javascript:;">查看</a></td>

       </tr>
        <!--{foreachelse}-->
        <tr><td colspan="7" height="30">&nbsp;</td>
        </tr>
       <!--{/foreach}-->
  
       </table>
       
       </td>
      </tr>
    </table>
	</form>
  </div>
</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
<script>
$(function(){
	window.print() ;
})
</script>
{$async_sendmail}
</html>